package cn.imnaer.service.rest.photo;


import javax.jws.WebService;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
@WebService
@Path(value = "/travelnote")
public interface TravelNoteComponentRestApi {
    @POST
    @Path("/create")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String createTravelNote(String jsonData);
    @GET
    @Path("/detail/{travelNoteId}/{userId}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String getTravelNoteDetail(@PathParam("travelNoteId") String travelNoteId,@PathParam("userId") String userId);
    @POST
    @Path("/comment")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String comment(String travelNoteCommentJsonData);
    @GET
    @Path("/comment/delete/{travelNoteCommentId}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String deleteComment(@PathParam("travelNoteCommentId")String travelNoteCommentId);
    @GET
    @Path("/support/{travelNotePhotoId}/{userId}/{isAdd}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String support(@PathParam("travelNotePhotoId") String travelNoteId,@PathParam("userId") String userId,@PathParam("isAdd") int isAdd);
    @GET
    @Path("/support/list/{travelNotePhotoId}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String supportUsers(@PathParam("travelNotePhotoId") String travelNoteId);
    @GET
    @Path("/comment/list/{travelNotePhotoId}/{pageIndex}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String commentList(@PathParam("travelNotePhotoId") String travelNotePhotoId,int pageIndex);
    @GET
    @Path("/delete/{travelNoteId}")
    public String deleteTravelNote(@PathParam("travelNoteId") String noteId);
}
